import axios from '@/libs/request/axios'
export function fetchList(query) {
  return axios.request({
    url: '/admin/client/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return axios.request({
    url: '/admin/client/',
    method: 'post',
    data: obj
  })
}
export function delObj(id) {
  return axios.request({
    url: '/admin/client/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return axios.request({
    url: '/admin/client',
    method: 'put',
    data: obj
  })
}
